Jazz authentication change from Form to Basic on tomacat
Hello,
I am trying to change my JTS 4.0 authentication from "Form" to "Basic" on tomcat server ,integrated with LDAP.
If i am correct is these files are enough to change the authentication type
* 1) file path JTS\Server\Tomcat\conf\jts\web.xml ( comment form type and un comment basic type)
** 2) File path JTS\server\tomcat\conf\Catalina\localhost\jazz.xml ( class name attribute "value")
(or)
* Is it required to change the same in JTS\Server\Tomcat\conf\ccm\web.xml ....also?
** Is it required to change the same in JTS\server\tomcat\conf\Catalina\localhost\ccm.xml ( class name attribute "value")?
When i did changes only with the 1 and 2 it given me the basic authentication window but with some initialization errors.
please clarify me on this topic
Thank you in advance
Ashwath
Accepted answer
2 other answers
The comments at the end of this article: https://jazz.net/library/article/75
describe everything that needs to be changed. I've pasted them below for reference.
Bo Chulindra wrote on September 26, 2012 04:35:37:
describe everything that needs to be changed. I've pasted them below for reference.
Bo Chulindra wrote on September 26, 2012 04:35:37:
Note that if you follow the instructions to configure the server to use BASIC auth, you may see the following warning in Tomcat:
Mar 20, 2012 4:22:55 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Context/Valve} Setting property 'characterEncoding' to 'UTF-8' did not find a matching property
This is can be resolved by removing the characterEncoding attribute from the "Valve" element. After removing the attribute, the element should look like this:
<Valve className="org.apache.catalina.authenticator.BasicAuthenticator"
changeSessionIdOnAuthentication="true"
securePagesWithPragma="false"/>
We believe it is necessary to do the below to change Tomcat application server to use BASIC authentication. Other settings explained above were not enough. For us, this made it possible to access RTC 3.0.x news feeds from Lotus Notes 8.5 and RSSOwl 2.1.4.
1. Shut down all Jazz servers.
2. Find every occurrence of:
<login-config>
<auth-method>FORM</auth-method>
...
</login-config>
in all files named "web.xml" under
[JazzServerInstallDir]/server/tomcat/webapps and replace it with:
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Jazz</realm-name>
</login-config>
The new text should already appear in the file in a comment.
3. Find every occurrence of
"org.apache.catalina.authenticator.FormAuthenticator" in all .xml files
under [JazzServerInstallDir]/server/tomcat and replace it with
"org.apache.catalina.authenticator.BasicAuthenticator".
4. Restart all Jazz servers.
Note that this will change the way Jazz authenticates all web clients as well, not just feeds.
I should clarify here that the files mentioned in the question aren't correct for JTS 4.0. JTS 4.0 uses Tomcat 7, so there will not be the file
server/tomcat/conf/Catalina/localhost/<appName>.xml
Instead, it will be
server/tomcat/webapps/<appName>/META-INF/context.xml.
The other file to modify is
server/tomcat/webapps/<appName>/WEB-INF/web.xml
server/tomcat/conf/Catalina/localhost/<appName>.xml
Instead, it will be
server/tomcat/webapps/<appName>/META-INF/context.xml.
The other file to modify is
server/tomcat/webapps/<appName>/WEB-INF/web.xml